package com.leen.video.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;

/**
 * <p>
 * 代码生成字段信息存储
 * </p>
 *
 * @author 狂神说
 * @since 2021-05-19
 */
@Getter
@Setter
@Entity
@Table(name = "column_config")
@ApiModel(value="ColumnConfig对象", description="代码生成字段信息存储")
public class ColumnConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "table_name")
    private String tableName;

    @Column(name = "column_name")
    private String columnName;

    @Column(name = "column_type")
    private String columnType;

    @Column(name = "dict_name")
    private String dictName;

    @Column(name = "extra")
    private String extra;

    @Column(name = "form_show")
    private Integer formShow;

    @Column(name = "form_type")
    private String formType;

    @Column(name = "key_type")
    private String keyType;

    @Column(name = "list_show")
    private Integer listShow;

    @Column(name = "not_null")
    private Integer notNull;

    @Column(name = "query_type")
    private String queryType;

    @Column(name = "remark")
    private String remark;

    @Column(name = "date_annotation")
    private String dateAnnotation;


}
